#ifndef MAINDLG__H__
#define MAINDLG__H__
#include "resource.h"
#include "YeBaDlg.h"
#include "MyPngDraw.h"
#include "MyMenu.h"
#include "InitFace.h"
#include "SetChatSize.h"
#include "Turntable.h"
#include "XwDialog.h"
#include "OnLineGame.h"

class CMainDlg
{
public:
	COnLineGame *m_OnLineGame;
	CRunHousrseBkg	*m_RunDlg;
	CTurntable *m_TurnDlg;
	CMainDlg(HANDLE handle);
	~CMainDlg(void);
	void	OnQueryTurntable();
	void	OnLineTip(const char* str);
	void	OnInitTurntable();
	void	OnInitRunHourse();
	void	OnInitOnLineGame();
	void	OnMoveDownPos(int Pos);
	void	GetScreenInfo();
	void	OnPaint(HDC dc);
	void	InitWindow(HINSTANCE hInst);
	void	OnMenu();
	void	OnChangeUrl();
	
	void	OnThreadChat(char *str);
	void	OnLButtonUp(WPARAM wParam,LPARAM lParam);
	void	OnLButtonDown(WPARAM wParam,LPARAM lParam);
	void	OnMouseMove(WPARAM wParam,LPARAM lParam);
	void	OnAddPerson(CString name);
	void	OnEndTurntableMsg(WORD ID);
	void	MsgBox(LPCTSTR Text);
	TCHAR        m_RestartPath[MAX_PATH];
	TCHAR        m_YeBaPath[MAX_PATH];
	CSetChatSize *m_SetChatSize;
	CInitFace    *m_InitFace;
	CString      m_NumStr;
	RECT         m_ChaScr;
	int          m_ID;
	TCHAR		 m_path[MAX_PATH];
	TCHAR		 m_Ini[MAX_PATH];
	UINT		 m_IniNum;
	void		 OnSetSize();
	int			 m_nMovePos;
	CYeBaDlg     *m_YeBaDlg;
public:
	bool       m_bTurnTable;
	WORD       m_nAddPerson;
	WORD       m_TurntableID;
	BOOL       m_bClkChange;
	HANDLE     m_hEvent;
	CMyMenu    *M_MenuDlg;
	HWND       m_ComBox;
	CMyPngDraw m_ChangeScr[2];//0left 1ringht
	CMyPngDraw m_BtnPic[4];
	HDC        m_BkDc;
	HWND       m_MainHwnd;
	HINSTANCE  m_hIn;

};
#endif